import Vue from 'vue'
import App from './App.vue'

const app = new Vue({
  el: '#app',
  // template: '<div>{{msg}}</div>',
  data: {
    msg: 'i am msg'
  },
  beforeCreate: function() {
    console.log('beforeCreate', '');
  },
  created: function() {
    console.log('created', '');
  },
  beforeMount: function() {
    console.log('beforeMount', '');
  },
  mounted: function() {
    console.log('mounted', '');
  },
  beforeUpdate: function() {
    console.log('beforeUpdate', '');
  },
  updated: function() {
    console.log('updated', '');
  },
  beforeDestroy: function() {
    console.log('beforeDestroy', '');
  },
  destroyed: function() {
    console.log('destroyed', '');
  },
  render: h => h(App)
});
window.app = app;
